/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.faytechcc.csc251.gui;

import edu.faytechcc.csc251.mvc.AbstractViewPanel;
import edu.faytechcc.csc251.mvc.concrete.ColorProperties;
import java.awt.Color;
import java.beans.PropertyChangeEvent;
import javax.swing.JLabel;

/**
 *
 * @author bryanc7064
 */
public class ColorDisplayPanel extends AbstractViewPanel {

    private Color backGroundColor;
    
    public ColorDisplayPanel() {
        JLabel label = new JLabel("Hello");
        this.add(label);
    }
    
    
    
    @Override
    public void modelPropertyChange(PropertyChangeEvent evt) {
        switch(evt.getPropertyName())
        {
            case ColorProperties.COLOR:
                if(!((Color)evt.getNewValue()).equals(backGroundColor)) {
                    setBackground((Color)evt.getNewValue());
                }
                break;
            case ColorProperties.RED:
                break;                
            case ColorProperties.GREEN:
                break;
            case ColorProperties.BLUE:
                break;
            default:
                break;                
        }
    }
    
}
